-- GENERATED SPELL FOR [Warmaul Chef Bufferlo] --


function spell0_18440(pUnit, Event) --@Filet,n/a--
pUnit:FullCastSpellOnTarget(32378,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18440', 5343, 1)
end

function spell1_18440(pUnit, Event) --@Shoulder Charge,n/a--
pUnit:FullCastSpellOnTarget(31994,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18440', 1295, 1)
end

function spell2_18440(pUnit, Event) --@Tenderize,n/a--
pUnit:FullCastSpellOnTarget(32376,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18440', 30257, 1)
end

function Sorts_18440(pUnit, Event)
local choix_sorts_18440 = math.random(0, 2)
if choix_sorts_18440 == 0 then
pUnit:RegisterEvent('spell0_18440', 1, 1)
end
if choix_sorts_18440 == 1 then
pUnit:RegisterEvent('spell1_18440', 1, 1)
end
if choix_sorts_18440 == 2 then
pUnit:RegisterEvent('spell2_18440', 1, 1)
end
end

function mob18440_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18440', math.random(1500, 3000), 1)
end

function mob18440_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18440_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18440_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18440, 1, 'mob18440_Action')
RegisterUnitEvent(18440, 2, 'mob18440_Leave')
RegisterUnitEvent(18440, 3, 'mob18440_Kill')
RegisterUnitEvent(18440, 4, 'mob18440_Die')
